package com.base.pig.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.base.pig.entity.ScSensorInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;


/**
 * <p>
 *  服务类
 * </p>
 *
 * @author yjh
 * @since 2022-04-19
 */
public interface ScSensorInfoService extends IService<ScSensorInfo> {

    //001.查询全部传感器code
    List<Map<String,Object>> queryAllSensorCode();
    //002.查询设备类型下传感器信息
    List<Map<String, Object>> querySensorByDeviceType(@Param("deviceid") String devicetype);

    //003.查询设备下传感器等信息
    List<Map<String,Object>> querySensorByDevice(@Param("tableName") String tableName,@Param("deviceid") String deviceid);

    //004.查询点位下传感器等信息
    List<Map<String,Object>> querySensorByPoint(@Param("tableName") String tableName,@Param("pointid") String pointid);
}
